/*

Stickman Adventure - a game created by Daco & his cousin

Copyright (C) 2011-2012  DacoTaco & Wouterke

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation version 2.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.


*/
#ifndef _VEGETA_H
#define _VEGETA_H

#include "Global.h"
#include "MovingObject.h"


class Foo: public MovingObject
{ 
protected:
	//The offset 
	int offSet; 
	//direction vegeta is moving
	int direction;
	//Its current frame 
	int frame; 
	//Its animation status 
	int status; 
	double offset_x;
	double offset_y;
	SDL_Rect clip[ 62 ];
public: 
	//Initializes the variables 
	Foo(char* spritesheet ,int xpos , int ypos);
	~Foo();
	//Moves the stick figure 
	void SetCoordinates(double x, double y);
	//Shows the stick figure 
	char Update(int collision, int y_ground, int x_wall);
	char Update(int collision, int y_ground, SDL_Surface *sheet);
	SDL_Rect* getImageClip();
	void ResizeImage(double x, double y);
	SDL_Surface *pAnimation;
};

#endif